//
//  GETViewCtl.m
//  afnleaks
//
//  Created by  Mac on 2021/3/31.
//

#import "GETViewCtl.h"

@interface GETViewCtl ()

@end

@implementation GETViewCtl

- (void)viewDidLoad {
    [super viewDidLoad];
}

- (IBAction)getaction:(id)sender {
    
    NSString *urlString = @"http://www.xiaoqincai.tk";
    
    AFHTTPSessionManager *manager =[AFHTTPSessionManager manager];
    
    [manager GET:urlString parameters:nil headers:nil progress:^(NSProgress * _Nonnull downloadProgress) {
        
    } success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
        NSLog(@"成功");
    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
        NSLog(@"%@",error);
    }];
    
}


@end
